<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
	<base href="<%=basePath%>">
	<link href="background/css/main.css" rel="stylesheet" type="text/css" />
	<script src="background/js/calendar3.js" type="text/javascript"></script>
	<script charset="utf-8" src="editor/kindeditor-min.js"></script> 
	<script charset="utf-8" src="editor/lang/zh_CN.js"></script>
	<script>
        var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[id="content1"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'source', '|', 'fullscreen', '|', 'plainpaste','|', 'fontname', 'fontsize', 'forecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'link']
				});
			});
	</script>
</head>

<body>
	<s:form method="post" action="saveNotic.action">
		<tr>
			<td colspan="2" class="header"><s:text name="header" /></td>
		</tr>
		<s:textfield id="title" name="notic.ntitle" key="title" required="true" />
		<s:textfield id="editor" name="notic.neditor" key="editor" required="true" />
		<s:textfield id="createtime" name="notic.ncreateTime" onclick="new Calendar().show(this);" readonly="true" key="createTime" required="true" />
		<s:textarea name="notic.ncontent" id="content1" key="content" required="true"></s:textarea>
		<s:select key="type" name="notic.nmessageType" list="#{1:'重要通知',2:'信息公告'}" />
		<tr>
	    	<td colspan="2" class="button">
	    		<s:reset key="reset" theme="simple" />
	    		<s:submit key="submit" theme="simple" />
	    	</td>
		</tr>
	</s:form>
</body>
</html>
